<!-- <script type="text/javascript">
    //check open popup
    function checkOpenPopup(url) {
        if(window.innerWidth <= 480) {
            Smoothbox.open(url, {autoResize : true, width: 300});
        }
        else {
            Smoothbox.open(url);
        }
    }
</script>

<div id="featured-jobs">
    <?php foreach ($this->jobs as $job): ?>
    <div class="featured-job-item">
        
        <div class="company-photo">
            <?php echo $this->itemPhoto($job, 'thumb.profile')?>
        </div>
        
        <div class="job-title">
            <?php echo $this->htmlLink($job->getHref(), $job->getTitle())?>
        </div>
        
        <?php $company = $job->getCompany();
        if ($company) : ?>
        <div class="company-name">
            <?php echo $this->htmlLink($company->getHref(), $company->getTitle())?>
        </div>
        <?php endif; ?>
        
        <?php if (!empty($job->working_place)) : ?>
        <div class="job-location">
            <?php echo $job->working_place?>
        </div>
        <?php endif; ?>
        
        <div class="job-level">
            <?php echo $job->getLevel()?>
        </div>
        
        <div class="job-salary">
            <?php echo $job->getSalary()?>
        </div>
        
        <div class="job-type">
            <?php echo $job->getJobType()?>
        </div>
        
        <div class="job-description">
            <?php echo strip_tags($job->description) ?>
        </div>
        
        <?php if (!$job->isOwner()) :?>
        <div class="job-save">
        <?php if (!$job->hasSaved()) : 
            $url = $this->url(array('module' => 'ynjobposting', 'controller' => 'jobs', 'action' => 'save', 'id' => $job->getIdentity()), 'ynjobposting_job', true);
        ?>
            <a href="javascript:void(0)" onclick="checkOpenPopup('<?php echo $url?>')"></span><?php echo $this->translate('Save') ?></a>
        <?php else: ?>
            <a href="javascript:void(0)" class="disabled-link"><?php echo $this->translate('Saved')?></a>
        <?php endif; ?>
        </div>
        <?php endif; ?>
    </div>
    <?php endforeach; ?>
</div> -->